package com.ljt.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ljt.utils.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("biz_health")
@ApiModel(value="Health对象", description="健康表")

public class Health implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户ID")
    @TableId(value = "id", type = IdType.AUTO)
    @Excel(name = "用户ID")
    private Long id;

    @ApiModelProperty(value = "地址")
    @Excel(name = "地址")
    private String address;

    @ApiModelProperty(value = "用户ID 连接用户表")
    @Excel(name = "用户ID")
    private int user_id;

    @ApiModelProperty(value = "身体状况 # 0:健康 1：良好 2：生病中")
    @Excel(name = "身体状况")
    private int situation;

    @ApiModelProperty(value = "是否接触感染人员 0：否 1:是")
    @Excel(name = "是否接触感染人员")
    private int touch;

    @ApiModelProperty(value = "备注")
    @Excel(name = "备注")
    private String remark;

    @ApiModelProperty(value = "打卡时间")
    @Excel(name = "打卡时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date create_time;
}
